package com.medata.service.impl;

import com.medata.dataObject.Actiondef;
import com.medata.repository.ActiondefRepository;
import com.medata.service.ActiondefService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：zb
 * @date ：Created in 2019/7/1 0001 16:33
 * @description：
 */
@Service
public class ActiondefServiceImpl implements ActiondefService {
    @Autowired
    private ActiondefRepository repository;


    @Override
    public List<Actiondef> findAll() {
        return repository.findAll();
    }

    @Override
    public Actiondef findByActionName(String name) {
        return repository.findByActionname(name);
    }

    @Override
    public void saveOrUpdate(Actiondef actiondef) {
        repository.save(actiondef);
    }
}
